package org.neuedu.chapter03_0610;

public class Practice11 {
    public static void main(String[] args) {
        // 有一个不多于5位的正整数，求它是几位数，
        // 分别打印出每一位数字
        int num = 34;
        String str = num + "";
        System.out.println(str.length());

        int w = num / 10000;
        int q = num / 1000 % 10;
        int b = num / 100 % 10;
        int s = num / 10 % 10;
        int g = num % 10;

        System.out.println(w);
        System.out.println(q);
        System.out.println(b);
        System.out.println(s);
        System.out.println(g);
    }
}
